package com.jm.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jm.common.util.entity.SelectCondition;
import com.jm.pojo.Category;
import com.jm.pojo.Toy;
import com.jm.pojo.dto.ToyDto;
import org.springframework.transaction.annotation.Transactional;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;

@Transactional
public interface ToyService extends IService<Toy> {

    IPage<Toy> selectByPageCondition(SelectCondition condition);

    ToyDto toDto(Toy toy);

    IPage<ToyDto> toDto(IPage<Toy> toys);

    boolean changeStatusByIds(List<String> ids, Integer status);

    List<Toy> getByCategoryId(String categoryId);

}
